{% extends "layouts/base.phtml" %}

{% block content %}

<!-- page heading start-->
<div class="page-heading">
    添加管理员
</div>
<!-- page heading end-->

<!--body wrapper start-->
<div class="wrapper">
    <form class="form-horizontal" role="form" id="addForm" action="/administrator/doadd" method="post">
        <div class="form-group">
            <label for="name" class="col-lg-1 col-sm-1 control-label">管理员名：</label>
            <div class="col-lg-2">
                <input type="text" class="form-control" id="name" name="name">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-lg-1 col-sm-1 control-label">管理员密码：</label>
            <div class="col-lg-2">
                <input type="password" class="form-control" id="password" name="password">
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-2 col-sm-2 col-lg-offset-1 col-sm-offset-1">
                <button type="button" class="btn btn-primary" onclick="add()">提交</button>
            </div>
        </div>
    </form>
</div>

<!-- Modal -->
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
                <h4 class="modal-title">提示信息</h4>
            </div>
            <div class="modal-body">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" data-dismiss="modal">确定</button>
            </div>
        </div>
    </div>
</div>

{% endblock %}

{% block jsInclude %}
{{ javascript_include("static/js/administrator-add.js") }}
{% endblock %}